package com.imooc.ecommerce.dao;

import com.imooc.ecommerce.entity.EcommerceAddress;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author Yaxi.Zhang
 * @since 2022/11/12 09:39
 */
public interface EcommerceAddressDao extends JpaRepository<EcommerceAddress, Long> {

    /**
     * <p>根据 用户 id 查询地址信息
     */
    List<EcommerceAddress> findAllByUserId(Long userId);
}
